package suanshu;

public class Demo06 {
    public static void main(String[] args) {
        boolean t = true;
        boolean f = false;
        System.out.println("---------    &    ---------");
        System.out.println("t & t "+(t & t));//true
        System.out.println("t & t "+(t & f));//false
        System.out.println("t & t "+(f & t));//false
        System.out.println("t & t "+(f & f));//false
        System.out.println("---------    |    ---------");

        System.out.println(t | t);//true
        System.out.println(t | f);//true
        System.out.println(f | t);//true
        System.out.println(f | f);//false
        System.out.println("---------    ^    ---------");
        System.out.println(t ^ t);//false
        System.out.println(t ^ f);//true
        System.out.println(f ^ t);//true
        System.out.println(f ^ f);//false
        System.out.println("---------    !    ---------");
        System.out.println(! t);//false
        System.out.println(! f);//true





    }
}
